<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="/WEB-INF/c.tld"%>
<%@ taglib prefix="fmt" uri="/WEB-INF/fmt.tld"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="pragma" content="no-cache" />
		<meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
		<meta http-equiv="expires" content="Wed, 26 Feb 1970 08:21:57 GMT" />
		<link href="<c:url value='/images/css/style.css' />" rel="stylesheet" type="text/css" />
		<title>下订单</title>
		<script type="text/javascript" src="<c:url value='/js/user.js' />"></script>
	</head>
	<body>
		<div id="container">
			<div id="globalHeader">
				<p id="logo">
					<a href="#"><img src="<c:url value='/images/logo.gif' />" alt="logo" />
					</a>
				</p>
  <ul id="globalTopNav">
      <li><a href="<c:url value='/User_Reg.jsp' />" >用户注册</a></li>
      <li><a href="<c:url value='/User_Login.jsp' />" >用户登陆</a></li>
      <li><a href="<c:url value='/User/Change_Info.jsp' />" >会员中心</a></li>
      <li><a href="<c:url value='/Cart.jsp' />" >购物车</a></li>
      <li><a href="<c:url value='/User/Show_Orderlist.jsp' />" >查看订单</a></li>
      <li id="globalTopNavLast"><a href="<c:url value='/Admin_Login.jsp' />" >后台管理</a></li>
      <li id="globalTopNavRight">&nbsp;</li>
  </ul>
			</div>
			<div id="globalNav">
				<ul>
					<li id="currentPage">
						<a href="<c:url value='/Show.jsp' />">首页</a>
					</li>
					<li>
						<a href="<c:url value='/User/Change_Info.jsp' />">会员中心</a>
					</li>
					<li>
						<a href="<c:url value='/User/Show_Orderlist.jsp' />">查看订单</a>
					</li>
				</ul>
			</div>
			<div id="urHere" class="globalModule globalFrame"
				style="margin-top:10px">
				<h3>
					当前位置:
					<a href="<c:url value='/Show.jsp' />">首页</a>
					<code>
						&gt;
					</code>
					下订单
				</h3>
			</div>
			<div class="globalModule globalFrame">
				<h3>
					下订单
				</h3>
                <form action="<c:url value='/User/OrderServlet' />" name="sendorder" method="post" >
      				<table border="0" align="center" cellpadding="0" cellspacing="0" class="pay">
                      <tr>
                        <th>订单号：</th>
                        <td>${sessionScope.mcCart.orderId}&nbsp;</td>
                      </tr>
                      <tr>
                        <th>所购商品种类数：</th>
                        <td>${sessionScope.mcCart.mcTypeCount}&nbsp;</td>
                      </tr>
                      <tr>
                        <th>所购商品总件数：</th>
                        <td>${sessionScope.mcCart.mcCount}&nbsp;</td>
                      </tr>
                      <tr>
                        <th>价格总计：</th>
                        <td>￥${sessionScope.mcCart.totalPrice}&nbsp;</td>
                      </tr>
                      <tr>
                        <th>下单日期：</th>
                        <td>${sessionScope.mcCart.dgdate}&nbsp;</td>
                      </tr>
                      <tr>
                        <th>付款方式：</th>
                        <td>${param.spaytype}&nbsp;</td>
                      </tr>
                      <tr>
                        <th>送货方式：</th>
                        <td>${param.ssendtype}&nbsp;</td>
                      </tr>
                      <tr>
                        <th>收货人：</th>
                        <td><input type="text" name="ssname" class="textInput" value="${sessionScope.user.sname}" />&nbsp;</td>
                      </tr>
                      <tr>
                        <th>收货地址：</th>
                        <td><input type="text" name="ssaddress" class="textInput" value="${sessionScope.user.saddress}" />&nbsp;</td>
                      </tr>
                      <tr>
                        <th>收货人邮编：</th>
                        <td><input type="text" name="sscode" class="textInput" maxlength="6" value="${sessionScope.user.scode}" />&nbsp;</td>
                      </tr>
                      <tr>
                        <th>收货人电话：</th>
                        <td><input type="text" name="ssphone" class="textInput" value="${sessionScope.user.sphone}" />&nbsp;</td>
                      </tr>
                      <tr>
                        <th>收货人邮箱：</th>
                        <td><input type="text" name="ssemail" class="textInput" value="${sessionScope.user.semail}" />&nbsp;</td>
                      </tr>
                      <tr>
                        <td colspan="2" align="center" style=" padding-left:35%;">
                          <input type="hidden" name="nid" value="${sessionScope.mcCart.orderId}" />
                          <input type="hidden" name="scuser" value="${sessionScope.user.suser}" />
                          <input type="hidden" name="nmctypesize" value="${sessionScope.mcCart.mcTypeCount}" />
                          <input type="hidden" name="nmcsize" value="${sessionScope.mcCart.mcCount}" />
                          <input type="hidden" name="dgdate" value="${sessionScope.mcCart.dgdate}" />
                          <input type="hidden" name="spaytype" value="${param.spaytype}" />
                          <input type="hidden" name="ssendtype" value="${param.ssendtype}" />
                          <input type="hidden" name="sstatus" value="2" />
                          <input type="hidden" name="act" value="sendorder" />
                          <input type="submit" value="确定下单" />&nbsp;&nbsp;<input type="reset" value="重置信息" /></td>
                        </tr>
                    </table>
                    </form>
			</div>
			<div id="globalFooter">
				<div id="footerLine">
					<img src="<c:url value='/images/footer_line.gif' />" alt="" />
				</div>
				<p id="footerNav">
					<a href="#">免责条款</a> |
					<a href="#">隐私保护</a> |
					<a href="#">咨询热点</a> |
					<a href="#">联系我们</a> |
					<a href="#">公司简介</a> |
					<a href="#">预留功能</a> |
					<a href="<c:url value='/Admin_Login.jsp' />">后台管理</a>
				</p>
			</div>
		</div>
  <script language="javascript">
		var ssname_empty = "收货人不能为空";
		var ssaddress_empty = "收货人地址不能为空。";
		var sscode_empty = "收货人邮编不能为空。";
		var ssphone_empty = "收货人电话不能为空.";
		var ssemail_empty = "收货人Email不能为空";
		var phone_format = "电话格式错误";
		var email_format = "邮箱格式错误";
		var sscode_format = "邮政编码格式错误，只能为6位数字"
  </script>
	</body>
</html>
